package com.wharf.base.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wharf.base.dao.GoodsMapper;
import com.wharf.base.model.Goods;

//前端商品展示
@Service
public class GoodsServiceImp implements GoodsService {
	
	@Autowired
	private GoodsMapper goodsmapper;
	
	
	//查询商品类所有信息
	@Override
	public List<Goods> selectBygoodsServicer() {
		// TODO Auto-generated method stub
		List<Goods> goods= goodsmapper.selectBygoods();
		return goods;
	}


	@Override
	public List<Goods> goodsShow(String i) {
		// TODO Auto-generated method stub
		return goodsmapper.goodsShow(i);
	}

//根据id查询所有的商品
	@Override
	public List<Goods> selectById(Integer goodsId) {
		// TODO Auto-generated method stub
		return goodsmapper.selectById(goodsId);
	}


	

}
